
import numpy as np
 
a1 = np.arange(97,123) #小写
b1 = [chr(i) for i in a1]
a2 = np.arange(65,91) #大写
b2 = [chr(i) for i in a2]
print(b1)
print(b2)
#result:['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
